Skip to content

HDDS-15677. Update client side version checks to use isSupportedBy.#10611

Open
errose28 wants to merge 6 commits into
apache:HDDS-14496-zdufrom
errose28:om-version-client-cleanup
Open

HDDS-15677. Update client side version checks to use isSupportedBy.#10611
errose28 wants to merge 6 commits into
apache:HDDS-14496-zdufrom
errose28:om-version-client-cleanup

Conversation

@errose28

@errose28 errose28 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Replace client side version comparison that was previously using compareTo with the new and more readable isSupportedBy. No functional change is expected. compareTo cannot be removed since it is built into the enum, and it provides correct results so there is no harm other than readability.

What is the link to the Apache JIRA

HDDS-15677

How was this patch tested?

New coverage was added for the client side version parsing which was previously missing. These tests were generated by Claude Code and reviewed by me.

Green run on my fork

@errose28 errose28 added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label Jun 25, 2026
@errose28 errose28 requested review from dombizita and sodonnel June 25, 2026 21:31
@errose28 errose28 marked this pull request as ready for review June 26, 2026 17:43
@errose28

Copy link
Copy Markdown
Contributor Author

Compat test failure isn't related to this PR, despite the suite it occurred in:

ERROR: Test execution of xcompat/test-old.sh is FAILED!!!!
Unable to find image 'ghcr.io/apache/ozone-runner:20260206-2-jdk21' locally

@ayushtkn ayushtkn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dombizita dombizita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this change @errose28, one minor logging comment.

@errose28

Copy link
Copy Markdown
Contributor Author

Build expired so rerunning just the failing jobs didn't work. Rerunning everything now. Thanks for the approval @ayushtkn . @dombizita would you like to check the last commit?

* HDDS-14496-zdu: (417 commits)
  HDDS-15808. Replace json-simple with Jackson in httpfsgateway (apache#10710)
  HDDS-15753. Rename TestClock to MockClock (apache#10712)
  HDDS-14759. Local Empty file is written and retained even when key write fails (apache#10707)
  HDDS-15647. Bump Node.js to 24.17.0 (apache#10590)
  HDDS-15783. Handle empty lists in ScmListCodec deserialization (apache#10690)
  HDDS-15768. Bracket IPv6 literals in Ratis peer addresses (apache#10686)
  HDDS-15679. [Recon] Fix DN dropdown mismatch with pending deletion API (apache#10615).
  HDDS-15692. Enable GitHub Copilot code review when a pull request is opened (apache#10705)
  HDDS-15739. Fix ListObjectsV2 continuation-token: wrong XML element name and empty-token handling (apache#10668)
  HDDS-15648. Improve TestSnapshotDiffManager#testThreadPoolIsFull drain scenario (apache#10632)
  HDDS-15803. Fix parameter number warning in OMKeyRequest.allocateBlock. (apache#10701)
  HDDS-15480. Potential for NPE / infinite loop in StreamBlockReader (apache#10431)
  HDDS-15523. Speed up TestOMDbCheckpointServletInodeBasedXfer (apache#10680)
  HDDS-15788. Fix SST filtering BOOTSTRAP_LOCK contention introduced by RocksDB 10 upgrade (apache#10692)
  HDDS-15752. Rename base tests and helpers for naming convention in OM (apache#10672)
  HDDS-15754. Rename TestableCluster to MockCluster (apache#10691)
  HDDS-15755. Bump develocity-maven-extension to 2.5.0 (apache#10674)
  HDDS-14956. Add S3 HAProxy to ozonesecure-ha/test-haproxy-s3g.sh (apache#10685)
  HDDS-15762. Remove mini-chaos-tests (apache#10682)
  HDDS-14577. Handle missing metadata dir when updating container state (apache#10565).
  ...

Conflicts:
hadoop-ozone/client/src/test/java/org/apache/hadoop/ozone/client/rpc/TestRpcClient.java
@errose28

Copy link
Copy Markdown
Contributor Author

Minor merge conflict in the test file resolved after the base branch was updated from master. Will merge this if CI comes back green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants